package com.example.a22310.myapplication.Service;

public interface APIservice {

    /***
     * 登录
     *  http://localhost/yuejian3/public/index.php/admin/Api/login?username=李豪&password=123
     */


    @GET("yuejian3/public/index.php/admin/Api/login")
    public Call<LoginBean> getUser(@Query("username") String username,
                                   @Query("password") String password);


    /***
     * //注册
     */
    @GET("yuejian3/public/index.php/admin/Api/userR")
    public Call<RegisterBean> getReg(@Query("username") String username,
                                     @Query("password") String password);


    /***
     *  //获取个人信息
     *    //http://localhost/yuejian3/public/index.php/admin/Api/getuser?user_id=2
     */

    @GET("yuejian3/public/index.php/admin/Api/getuser")
    public Call<MyBean> getMyInfo(@Query("user_id") String user_id);


    /***
     *  //获取大师列表  这里的大师 指的是 教练
     *    //http://localhost/yuejian3/public/index.php/clubadmin/api/getCoach
     */

    @GET("yuejian3/public/index.php/clubadmin/api/getCoach")
    public Call<List<AllMasterBean>> getAllMaster();


    /***
     *  //获取大师列表  这里的大师 指的是 教练
     *   //http://localhost/yuejian3/public/index.php/clubadmin/api/getCoach
     */

    @GET("yuejian3/public/index.php/admin/api/getAllgames")
    public Call<List<AllGamesBean>> getAllGames();


    /***
     *  //获取教练下的所有课程
     *    //http://localhost/yuejian3/public/index.php/clubadmin/api/getCoachlesson?clubcoach_id=1
     */

    @GET("yuejian3/public/index.php/clubadmin/api/getCoachlesson")
    public Call<List<MasterLessonBean>> getMasterLesson(@Query("clubcoach_id") String clubcoach_id);


    /***
     * //获取所有俱乐部列表
     *   //http://localhost/yuejian3/public/index.php/admin/api/getclubList
     */

    @GET("yuejian3/public/index.php/admin/api/getclubList")
    public Call<List<AllClubBean>> getAllClub();





    /***
     *  //获取所有活动列表
     *    //http://localhost/yuejian3/public/index.php/admin/Api/getAllactivity
     */

    @GET("yuejian3/public/index.php/admin/Api/getAllactivity")
    public Call<List<AllActivityBean>> getAllActivity();

    /***
     *   //获取活动的详情页面
     *     //http://localhost/yuejian3/public/index.php/admin/Api/activityIntor?activity_id=1
     */

    @GET("yuejian3/public/index.php/admin/Api/activityIntor")
    public Call<ActivityDetailsBean> getActivityDetails(@Query("activity_id")String activity_id);


    /***
     *    //获得全部的训练
     *      //http://localhost/yuejian3/public/index.php/admin/Api/getalltrain
     */

    @GET("yuejian3/public/index.php/admin/Api/getalltrain")
    public Call<List<IntroductionBean>> getAllTrain();

    /***
     *  //获得入门的训练
     *     //  http://localhost/yuejian3/public/index.php/admin/Api/getIntroductiontrain
     */

    @GET("yuejian3/public/index.php/admin/Api/getIntroductiontrain")
    public Call<List<IntroductionBean>> getIntroducionTrain();

    /***
     *  //获得菜鸟的训练
     *   //  http://localhost/yuejian3/public/index.php/admin/Api/getNewbietrain
     */

    @GET("yuejian3/public/index.php/admin/Api/getNewbietrain")
    public Call<List<IntroductionBean>> getNewbieTrain();

    /***
     *   //获得进阶的训练
     *    //  http://localhost/yuejian3/public/index.php/admin/Api/getAdvancetrain
     */

    @GET("yuejian3/public/index.php/admin/Api/getAdvancetrain")
    public Call<List<IntroductionBean>> getAdvanceTrain();


    /***
     *  //训练详情页面
     *    //  http://localhost/yuejian3/public/index.php/admin/Api/gettrain?train_id=4
     */

    @GET("yuejian3/public/index.php/admin/Api/gettrain")
    public Call<IntroductionBean> getTrain(@Query("train_id")String train_id);


    /***
     *  //活动订单
     *   //http://localhost/yuejian3/public/index.php/admin/Api/getactivity_order
     */

    @GET("yuejian3/public/index.php/admin/Api/getactivity_order")
    public Call<List<ActivityOrderBean>> getActivityOrder(@Query("user_id")String user_id);


    /***
     *  //修改个人信息
     *   //http://localhost/yuejian3/public/index.php/admin/Api/updateUser?user_id=2&email=1196&user_pic=3.jpg
     */

    @GET("yuejian3/public/index.php/admin/Api/updateUser")
    public Call<RegisterBean> getUpdateUser(@Query("user_id")String user_id,
                                            @Query("user_pic")String user_pic,
                                            @Query("email")String email);

    /***
     * 晒图列表 getPointList
     *  http://localhost/yuejian3/public/index.php/admin/api/getPoint
     */
    @GET("yuejian3/public/index.php/admin/api/getPoint")
    public Call<List<PointListBean>> getPointList();

    /***
     * getMyPosting
     *
     * 我的晒图页面
     *
     *http://localhost/yuejian3/public/index.php/admin/api/getMyPoint?user_id=1
     */
    @GET("yuejian3/public/index.php/admin/api/getMyPoint")
    public Call<List<MyPostingBean>> getMyPostingList(@Query("user_id")String user_id);

    /***
     * 我的关注页面    flag为0表示  最近比赛
     * http://localhost/yuejian3/public/index.php/admin/api/getAttentionGame?user_id=6
     */
    @GET("yuejian3/public/index.php/admin/api/getAttentionGame")
    public Call<List<MyAttentionBean>> getMyAttentionGameList(@Query("user_id")String user_id);


    /***
     *
     * 我的关注页面    flag为1表示  俱乐部
     *      http://localhost/yuejian3/public/index.php/admin/api/getAttentionClub?user_id=6
     *
     * getMyAttentionCLubList
     */
    @GET("yuejian3/public/index.php/admin/api/getAttentionClub")
    public Call<List<MyAttentionBean>> getMyAttentionClubList(@Query("user_id")String user_id);

    /***
     *
     * 我的关注页面    flag为2表示  大师
     *      http://localhost/yuejian3/public/index.php/admin/api/getAttentionClub?user_id=6
     *
     * getMyAttentionCLubList
     */
    @GET("yuejian3/public/index.php/admin/api/getAttentionMaster")
    public Call<List<MyAttentionBean>> getMyAttentionMasterList(@Query("user_id")String user_id);
    /****
     *getAddAttentionMaster
     *  添加  关注大师
     * http://localhost/yuejian3/public/index.php/admin/api/getAddAttentionMaster?user_id=1&clubcoach_id=1
     */
    @GET("yuejian3/public/index.php/admin/api/getAddAttentionMaster")
    public Call<RegisterBean> getAddAttentionMaster(@Query("user_id")String user_id,
                                                    @Query("clubcoach_id")String clubcoach_id);

    /***
     *
     * getCancleAttentionMaster
     *
     * 取消 关注大师
     */
    @GET("yuejian3/public/index.php/admin/api/getCancleAttentionMaster")
    public Call<RegisterBean> getCancleAttentionMaster(@Query("user_id")String user_id,
                                                       @Query("clubcoach_id")String clubcoach_id);

    /***
     * 大师是否关注
     *
     * * http://localhost/yuejian3/public/index.php/admin/api/getisAttentionMaster?user_id=1&clubcoach_id=1
     */
    @GET("yuejian3/public/index.php/admin/api/getisAttentionMaster")
    public Call<RegisterBean> getisAttentionMaster(@Query("user_id")String user_id,
                                                   @Query("clubcoach_id")String clubcoach_id);



    /****
     *  添加  关注比赛
     * http://localhost/yuejian3/public/index.php/admin/api/getAddAttentionGame?user_id=6&game_id=1
     */
    @GET("yuejian3/public/index.php/admin/api/getAddAttentionGame")
    public Call<RegisterBean> getAddAttentionGame(@Query("user_id")String user_id,
                                                  @Query("game_id")String game_id);

    /***
     *
     *
     * 取消 关注比赛
     */
    @GET("yuejian3/public/index.php/admin/api/getCancleAttentionGame")
    public Call<RegisterBean> getCancleAttentionGame(@Query("user_id")String user_id,
                                                     @Query("game_id")String game_id);

    /***
     * 比赛是否关注
     *
     * * http://localhost/yuejian3/public/index.php/admin/api/getisAttentionGame?user_id=1&game_id=1
     */
    @GET("yuejian3/public/index.php/admin/api/getisAttentionGame")
    public Call<RegisterBean> getisAttentionGame(@Query("user_id")String user_id,
                                                 @Query("game_id")String game_id);



    /****
     *  添加  关注俱乐部
     * http://localhost/yuejian3/public/index.php/admin/api/getAddAttentionClub?user_id=6&club_id=1
     */
    @GET("yuejian3/public/index.php/admin/api/getAddAttentionClub")
    public Call<RegisterBean> getAddAttentionClub(@Query("user_id")String user_id,
                                                  @Query("club_id")String club_id);

    /***
     *
     *
     * 取消 关注俱乐部
     */
    @GET("yuejian3/public/index.php/admin/api/getCancleAttentionClub")
    public Call<RegisterBean> getCancleAttentionClub(@Query("user_id")String user_id,
                                                     @Query("club_id")String club_id);

    /***
     * 俱乐部是否关注
     *
     * * http://localhost/yuejian3/public/index.php/admin/api/getisAttentionClub?user_id=6&club_id=1
     */
    @GET("yuejian3/public/index.php/admin/api/getisAttentionClub")
    public Call<RegisterBean> getisAttentionClub(@Query("user_id")String user_id,
                                                 @Query("club_id")String club_id);


    /***
     *   精选活动是否收藏
     *
     */
    @GET("yuejian3/public/index.php/admin/api/getisCollectActivity")
    public Call<RegisterBean> getisCollectActivity(@Query("user_id")String user_id,
                                                   @Query("activity_id")String activity_id);


    /***
     *   精选活动  收藏
     *
     */
    @GET("yuejian3/public/index.php/admin/api/getAddCollectActivity")
    public Call<RegisterBean> getCollectActivity(@Query("user_id")String user_id,
                                                 @Query("activity_id")String activity_id);

    /***
     *   精选活动取消收藏
     *
     */
    @GET("yuejian3/public/index.php/admin/api/getCancleCollectActivity")
    public Call<RegisterBean> getCancleCollectActivity(@Query("user_id")String user_id,
                                                       @Query("activity_id")String activity_id);







    /***
     *
     * 晒图评论列表
     *      * http://localhost/yuejian3/public/index.php/admin/api/getAttentionClub?user_id=6
     *
     * getMyAttentionCLubList
     */
    @GET("yuejian3/public/index.php/admin/api/getPointComment")
    public Call<List<PointCommentBean>> getPointCommentList(@Query("point_id")String point_id);



    /***
     *  //获取某俱乐部的教练列表
     *   http://localhost/yuejian3/public/index.php/clubadmin/api/getClubCoach?club_id=1
     */

    @GET("yuejian3/public/index.php/clubadmin/api/getClubCoach")
    public Call<List<AllMasterBean>> getClubCoach(@Query("club_id")String club_id);

    /****
     * 获取某俱乐部     精品课程
     *
     * http://localhost/yuejian3/public/index.php/clubadmin/api/getClubHQCourse?club_id=1
     */
    @GET("yuejian3/public/index.php/clubadmin/api/getClubHQCourse")
    public Call<List<ClubHQCourseBean>> getClubHQCourse(@Query("club_id")String club_id);


    /****
     * 获取某俱乐部     相关视频
     * //http://localhost/yuejian3/public/index.php/clubadmin/api/getClubvideo?club_id=1
     */
    @GET("yuejian3/public/index.php/clubadmin/api/getClubvideo")
    public Call<List<ClubVideoBean>> getClubvideo(@Query("club_id")String club_id);
    /****
     *
     *添加联系人     联系人      个人设置中
     *
     * http://localhost/yuejian3/public/index.php/admin/Api/insertLinkMan?link_man_name=唐启&user_id=1&link_man_ID_card=123321123
     */


    @GET("yuejian3/public/index.php/admin/Api/insertLinkMan")
    public Call<RegisterBean> insertLinkMan(@Query("user_id")String user_id,
                                            @Query("link_man_name")String link_man_name,
                                            @Query("link_man_ID_card")String link_man_ID_card);


    /****
     *
     *是否有联系人     联系人      个人设置中
     *
     * http://localhost/yuejian3/public/index.php/admin/Api/isLinkMan?user_id=6
     */
    @GET("yuejian3/public/index.php/admin/Api/isLinkMan")
    public Call<RegisterBean> isLinkMan(@Query("user_id")String user_id);

    /****
     *
     *获取联系人列表      联系人      个人设置中
     *
     * http://localhost/yuejian3/public/index.php/admin/Api/LinkMan?user_id=6
     */
    @GET("yuejian3/public/index.php/admin/Api/LinkMan")
    public Call<List<LinkManBean>> getLinkMan(@Query("user_id")String user_id);

    /***
     * 修改用户头像
     * http://localhost/yuejian3/public/index.php/admin/Api/updateUserHead?user_id=2&user_pic=2.jpg
     *
     */
    @GET("yuejian3/public/index.php/admin/api/updateUserHead")
    public Call<RegisterBean> getUpdateHead(@Query("user_id")String user_id,
                                            @Query("user_pic")String user_pic);


    /**
     * 数据请求服务
     * create by malong at 2016/4/25 0:34
     */
    /**
     * 上传头像
     */
    @Multipart
    @POST("yuejian3/public/index.php/admin/api/upload.php")
    Call<MediaBrowserService.Result<String>> uploadMemberIcon(@Part List<MultipartBody.Part> partList);



    //my set headpic
    @Multipart
    @POST("yuejian3/public/index.php/admin/api/updateMyHeadPic")
    Call<RegisterBean> updateMyHeadPic(
            @Part("user_id") String user_id,
            @Part MultipartBody.Part pic
    );


}

